﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AB.ServiceDirectory.Dao;
using AB.ServiceDirectory.Commons.DataFilters;
namespace AB.ServiceDirectory.BO
{
    public sealed class FacilityBo
    {
        private static readonly FacilityDao  Dao=new FacilityDao();
        private FacilityBo()
        {
        }
        public void GetList(FacilityFilter filter,string sortType,int startRowIndex,int max)
        {
            Dao.GetList(filter,sortType,startRowIndex,max);
        }
        public  void GetListSort(FacilityFilter filter, string sortType)
        {
            Dao.GetListSort(filter,sortType);
        }
        public  void GetListQuery(object data, FacilityFilter filter)
        {
            Dao.GetListQuery(data,filter);
        }
        public void GetListCount(FacilityFilter filter)
        {
            Dao.GetListCount(filter);
        }
        public void GetFacilitiesId(int id)
        {
            Dao.GetFacilitiesId(id);
        }
        public bool AddFacilities(object newFacility)
        {
            return Dao.AddFacilities(newFacility);
        }
        public bool EditFacilities(object newFacility)
        {
            return Dao.EditFacilities(newFacility);
        }
        public bool CheckFacilitiesTypeName(string name)
        {
            return Dao.CheckFacilitiesTypeName(name);
        }
        public bool CheckFacilitiesDescription(string name)
        {
            return Dao.CheckFacilitiesDescription(name);
        }
        public bool SetFacilitiesStatus(int facilitiesId, bool status)
        {
            return Dao.SetFacilitiesStatus(facilitiesId, status);
        }
    }
}
